#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
    int n = 0;
    scanf("%d", &n);
    int arr[n];
    int i = 0;
    int count1 = 0;
    int count2 = 0;
    int sum = 0;
    for (i = 0; i < n; i++)
    {
        scanf("%d", &arr[i]);
        if (arr[i] > 0)
        {
            sum = sum + arr[i];
            count1++;
        }
        if (arr[i] < 0)
        {
            count2++;
        }
    }
    if (count1 == 0)
        printf("%d 0.0", count2);
    else
        printf("%d %.1f", count2, sum / (count1 / 1.0));
    return 0;
}